package com.example.patient.jpa;

import com.example.common.entity.HospitalDepartment;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author wxy
 * @Date 2021/1/19 11:00
 * @Version 1.0
 */
public interface HospitalDepartmentRepository extends JpaRepository<HospitalDepartment, Long> {

    List<HospitalDepartment> findByDisableAndPdId(Boolean disable, Long pdId);

    List<HospitalDepartment> findByDisableAndIsRecommendAndPdId(Boolean disable,boolean isRecommend,long pdId);

    List<HospitalDepartment> findByDisable(Boolean disable);

    List<HospitalDepartment> findByDisableAndIsRecommend(Boolean disable, Boolean isRecommend);
}
